package a;

/**
 * 由于实例化不同的策略，所以最终调用context.contextInterface()时，
 * @author zz
 */
public class Client {
    public static void main(String[] args) {
        Context context;
        context=new Context(new ConcreteStrategyA());
        context.contextInterface();

        context=new Context(new ConcreteStrategyB());
        context.contextInterface();

        context=new Context(new ConcreteStrategyC());
        context.contextInterface();

    }
}
